package chp12.test2;

import java.util.Scanner;

public class TestSanJiao {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入行高:");
        int line = input.nextInt();
        System.out.print("请输入打印字符:");
        String zhi = input.next();

        //调用方法进行打印
        SanJiao sanJiao = new SanJiao();
        sanJiao.printTriangle(line,zhi);
    }
}
